import os, sys
import django.core.handlers.wsgi

apache_configuration = os.path.dirname(__file__)
project = os.path.dirname(apache_configuration)  
workspace = os.path.dirname(project)  

work_path = "D:/python_web"
if work_path not in sys.path:
	sys.path.append(work_path)
	
if project not in sys.path:
	sys.path.append(project)

#os.environ['DJANGO_SETTINGS_MODULE'] = 'python_web.settings '
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "python_web.settings")

#import django.core.handlers.wsgi  
#application = django.core.handlers.wsgi.WSGIHandler()

from django.core.wsgi import get_wsgi_application
application = get_wsgi_application()
